package cn.fx.framework.exception;

import cn.fx.framework.cons.ErrorCodeMessage;

/**
 * 权限异常
 * @author ljh
 * @date 2018-08-16 16:12
 */
public class PermissionException extends BaseException {
    private String functionId;
    private String actionId;
    private String userId;
    public PermissionException(int code, String msg){
        super(code, msg);
    }

    public PermissionException(String msg){
        this(ErrorCodeMessage.PERMISSION_EXCEPTION_MSG.getCode(), msg);
    }

    public String getFunctionId() {
        return functionId;
    }
    public void setFunctionId(String functionId) {
        this.functionId = functionId;
    }

    public String getActionId() {
        return actionId;
    }
    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }
}
